.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.fileInput {
    margin-bottom: 20px;
    width: 100%;
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

.imageContainer {
    margin-bottom: 20px;
    text-align: center;
}

.previewImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.colorPalette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.colorItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.colorBox {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.colorPosition {
    font-weight: bold;
    text-transform: capitalize;
}

.colorCode {
    font-family: monospace;
    font-size: 14px;
    color: #666;
}

.controls {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.gradientPreview {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    background: #f5f5f5;
}

.gradientBox {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cssCode {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    position: relative;
}

.cssCode pre {
    margin: 0;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-all;
}

.copyButton {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.copyButton:hover {
    background: #0056b3;
}